<?php get_header(); ?>
  <!-- content start -->
<div id="content">
  <?php get_sidebar(); ?>
  <!-- maincontent start -->
  <div id="maincontent"> 
  <?php if(have_posts()) : ?>
  <?php while(have_posts()) : the_post(); ?>
  <div class="post">
    <div class="title" >
      <h2><?php the_title(); ?></h2>
    </div>
      <?php the_content(); ?>
      <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  </div>
  <?php endwhile; ?>
  <?php else : ?>
  <div class="notfound">
    <p>Page Not Found!</p>
    <p>Please try again.</p>
  </div>
  <?php endif; ?>
</div>
  <!-- maincontent end -->
</div>
<!-- content end -->
<div style="clear:both"></div>

<?php get_footer(); ?>
